<?php
/**
 * @author Feng
 * @date 2012-6-16
 */
class collection_item_row extends collection_rule_row {


	protected $_categoryList = array();
	public function addCategoryList($id) {
		$this->_categoryList[$id] = $id;
	}
	public function getCategoryList() {
		return $this->_categoryList;
	}
	
	/**
	 * @return collection_collect_abstract
	 */
	public function getSpecialRule() {
		if(!($iid = intval($this->getSpecialRuleId()))) {
			return new collection_collect_item(null);
		}
		$concept = new collection_rule_concept();
		return new collection_collect_item($concept->fetch(array('id = ?' => $iid)));
	}
	
}
